//
//  NSArray+Extension.m
//  newYueLvHui
//
//  Created by edz on 2020/8/18.
//  Copyright © 2020 Facebook. All rights reserved.
//

#import "NSArray+Extension.h"

@implementation NSArray (Extension)
- (NSArray *)ys_map:(id  _Nonnull (^)(id _Nonnull, NSUInteger))block {
    NSMutableArray * mArr = [NSMutableArray array];
    [self enumerateObjectsUsingBlock:^(id  _Nonnull obj, NSUInteger idx, BOOL * _Nonnull stop) {
        [mArr addObject:block(obj,idx)];
    }];
    return [mArr copy];
}
@end
